<?php

class Core_Model_Promotion_Collection_Friendlink extends Dcmp_Model_Collection_Strong {

    public function __construct() {
        parent::__construct();
        $this->setItemClass('promotion/friendlink');
        $this->from('{t}promotion_friendlink', 'a')->select()->field('a.*');
    }

    public function filterBy($name, $arg) {
        switch ($name){
            case 'status':
                $this->addParameter('status',$arg)->eq('status',':status:s');
                break;
            
        }
        return $this;
    }
    
}

